package main
import(
	"fmt"
	"time"
)

var max int = 1000000
var sum int = 0

func main() {
	start := time.Now()
	for i := 0; i < max; i++ {
		if (i % 3 == 0)  || (i % 5 == 0) {
			sum += i
		}
	}
	fmt.Printf("The sum of all the multiplies of 3 or 5 below %v is: %v\n", max, sum)
	stop := time.Now()
	fmt.Printf("Execution time: %v\n", stop.Sub(start))
}
